package com.code.day19;

import java.util.HashMap;
import java.util.Set;

public class Demo03Setkey {
    public static void main(String[] args) {
        HashMap<String,String> map1 = new HashMap<>();
        map1.put("郭靖","黄蓉");
        map1.put("杨过","小龙女");
        map1.put("杨过", "郭襄");
        map1.put("张无忌","赵敏");

        Set<String> set = map1.keySet();
        for (String s : set) {
            String s1 = map1.get(s);
            System.out.println(s+"--->"+s1);
        }
    }
}
